package com.fg.fgmall.mapper;

import com.fg.fgmall.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CagetoryMapper {

    // 查询所有分类
    List<Category> selectAll() throws Exception;

    // 查询所有的一级分类
    List<Category> selectSupperCategory() throws Exception;

    // 根据父编号查询二级分类
    List<Category> selectByParentId(Integer parentId) throws Exception;

}
